module.exports = {
  apps: [
    {
      name: 'low-code-backend',
      script: 'low-code-backend/dist/main.js', // 容器内的打包路径
      cwd: '/app', // 容器内的工作目录
      env: {
        NODE_ENV: 'production',
        DOTENV_CONFIG_PATH: '.env.production', // 显式指定环境文件
      },
      instances: 'max',
      exec_mode: 'cluster',
      error_file: '/www/wwwroot/logs/err.log',
      out_file: '/www/wwwroot/logs/out.log',
      merge_logs: true,
    },
  ],
};